/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
 * Copyright (c) 2008 INRIA
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation;
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
 */
#include "tag.h"
#include "ns3/log.h"
namespace ns3 {
//NS_LOG_COMPONENT_DEFINE ("Tag");
NS_OBJECT_ENSURE_REGISTERED (Tag);

TypeId 
Tag::GetTypeId (void)
{
  static TypeId tid = TypeId ("ns3::Tag")
    .SetParent<ObjectBase> ()
    .SetGroupName("Network")
  ;
  return tid;
}

//////////////////////////////////TypeTag/////////////////////////////////
//NS_LOG_COMPONENT_DEFINE ("TypeTag");
NS_OBJECT_ENSURE_REGISTERED (TypeTag);

TypeId TypeTag::GetTypeId (void) {
  static TypeId tid = TypeId ("ns3::TypeTag")
    .SetParent<Tag> ()
    .SetGroupName ("Network")
    .AddConstructor<TypeTag> ()
     ;
     return tid;
}

TypeId TypeTag::GetInstanceTypeId (void) const {
  return GetTypeId ();
}

uint32_t TypeTag::GetSerializedSize (void) const {
  return 0;
}

void TypeTag::Serialize (TagBuffer i) const {
}

void TypeTag::Deserialize (TagBuffer i) {
}

void TypeTag::Print (std::ostream &os) const {
  os << "TypeTag";
}

//////////////////////////////////FlowEndTag/////////////////////////////////
// NS_LOG_COMPONENT_DEFINE ("FlowEndTag");
NS_OBJECT_ENSURE_REGISTERED (FlowEndTag);

TypeId FlowEndTag::GetTypeId (void) {
  static TypeId tid = TypeId ("ns3::FlowEndTag")
    .SetParent<Tag> ()
    .SetGroupName ("Network")
    .AddConstructor<FlowEndTag> ()
    ;
     return tid;
}

TypeId FlowEndTag::GetInstanceTypeId (void) const {
  return GetTypeId ();
}

uint32_t FlowEndTag::GetSerializedSize (void) const {
  return 0;
}

void FlowEndTag::Serialize (TagBuffer i) const {
}

void FlowEndTag::Deserialize (TagBuffer i) {
}

void FlowEndTag::Print (std::ostream &os) const {
  os << "FlowEndTag";
}

///////////////////////////////////EcnTag/////////////////////////////////////////////
// NS_LOG_COMPONENT_DEFINE ("EcnTag");
NS_OBJECT_ENSURE_REGISTERED (EcnTag);

TypeId EcnTag::GetTypeId (void) {
  static TypeId tid = TypeId ("ns3::EcnTag")
    .SetParent<Tag> ()
    .SetGroupName ("Network")
    .AddConstructor<EcnTag> ()
    ;
  return tid;
}

TypeId EcnTag::GetInstanceTypeId (void) const {
  return GetTypeId ();
}

uint32_t EcnTag::GetSerializedSize (void) const {
  return 0;
}

void EcnTag::Serialize (TagBuffer i) const {
}

void EcnTag::Deserialize (TagBuffer i) {
}

void EcnTag::Print (std::ostream &os) const {
  os << "EcnTag";
}

} 
// namespace ns3
